package org.rugby.online.impl;

import org.rugby.online.core.economy.RboEconomy;
import org.rugby.online.core.environment.RboTeamEnvironment;
import org.rugby.online.core.gamer.RboGamer;
import org.rugby.online.core.humans.RboPlayerTeam;
import org.rugby.online.core.humans.RboStaffTeam;

public class DefaultGamer extends DefaultObject implements RboGamer {

	/**
	 * Serial
	 */
	private static final long serialVersionUID = 8822059479088005181L;

	private RboStaffTeam staffTeam;
	private RboPlayerTeam playerTeam;
	private RboTeamEnvironment environment;
	private RboEconomy economy;
	
	public DefaultGamer(String name) {
		super();
		this.setName(name);
		staffTeam = new DefaultStaffTeam();
		playerTeam = new DefaultPlayerTeam();
		environment = new DefaultTeamEnvironment();
		economy = new DefaultEconomy(this.getId());
	}
	
	@Override
	public RboStaffTeam getStaffTeam() {
		return staffTeam;
	}

	@Override
	public RboPlayerTeam getPlayerTeam() {
		return playerTeam;
	}

	@Override
	public RboTeamEnvironment getTeamEnvironment() {
		return environment;
	}

	@Override
	public RboEconomy getTeamEconomy() {
		return economy;
	}

}
